﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using KMT_Pro.Utils;
using KMT_Pro.Web;
using KMT_Pro.ViewModels.HardwareViewModels;

namespace KMT_Pro.Views.HardwareViews
{
    public partial class HardwareMasterView : UserControl
    {
        HardwareMasterViewModel viewModel = new HardwareMasterViewModel();

        public HardwareMasterView()
        {
            InitializeComponent();

            this.DataContext = viewModel;
        }

        private void SchBtn_Click(object sender, RoutedEventArgs e)
        {
            var vm = this.DataContext as HardwareMasterViewModel;
            if (vm == null) return;
            //vm.SchCommand.Execute(TextBoxForm.Text);
        }

        private void editButton_Click(object sender, RoutedEventArgs e)
        {
            var vm = this.DataContext as HardwareMasterViewModel;
            if (vm == null) return;
            vm.editClick.Execute(null);
        }

        private void delButton_Click(object sender, RoutedEventArgs e)
        {
            var vm = this.DataContext as HardwareMasterViewModel;
            if (vm == null) return;
            vm.delClick.Execute(null);
        }

        

        private void ExcelOutBtn_Click(object sender, RoutedEventArgs e)
        {
            
        }
    }
}
